package top.sehnsucht.util;

import java.text.SimpleDateFormat;
import java.util.Date;


/**
 * @Description:
 * @Author: Cai
 * @CreateTime: 2021/11/14
 */

public class DateFormatUtil {
    private static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
    public static Date tran(String dateString) {
        try {
            return simpleDateFormat.parse(dateString);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return new Date();
    }
}
